const Service = require('egg').Service;
class ResultService extends Service {

  async find(data, len) {
    if (len)
      this.ctx.body = {
        code: 200,
        data: { list: data, total: len.length },
      };
    else
      this.ctx.body = {
        code: 200,
        data: data,
      };
  }

}
module.exports = ResultService;
